/*
 * Copyright (c) 2017. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package hello.javaConfig;

import org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer;

/**
 * @Author hiberk
 * @Date 2017/8/1 11:39
 * @Description this class is used for loading springSecurityFilterChain
 */
public class SpringSecurityInitializer extends AbstractSecurityWebApplicationInitializer {
    //加载spring security配置文件 如果没有spring或者SpringMVC的组件 则需要传递。否则不用
//    public SpringSecurityInitializer() {
//        super(WebSecurityConfig.class);
//    }

    public boolean enableHttpSessionEventPublisher() {
        return true;
    }


}
